package cn.stylefeng.guns.modular.ercomment.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 评论
 *
 * @author wpk
 * @date 2021/06/25 15:19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("er_comment")
public class ErComment extends BaseEntity {

    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 评论内容
     */
    @TableField("comment")
    private String comment;

    /**
     * 评论人头像
     */
    @TableField("avatar")
    private Long avatar;

    /**
     * 评论者昵称
     */
    @TableField("nickName")
    private String nickName;

    /**
     * 帖子id
     */
    @TableField("eid")
    private Long eid;

    /**
     * 评论点赞数
     */
    @TableField("love")
    private Integer love;


}
